#ifndef MAIN_WIDGET_H
#define MAIN_WIDGET_H

#include <QWidget>
#include <QPushButton>
#include "subwidget.h"
#include <QDebug>
class main_widget : public QWidget
{
    Q_OBJECT

public:
    main_widget(QWidget *parent = nullptr);
    ~main_widget();
    void changewindow();
    void sinnal_deal();
    void signal_deal_2(int a, QString str);
private:
    QPushButton b1;
    QPushButton *pb2;
    subwidget w2;
};
#endif // MAIN_WIDGET_H
